package com.orange.eureka.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegistryController {

    // 获取端口号
    @Value("${server.port}")
    private String port;

    @GetMapping("/orange/feign/{name}")
    public String registry(@PathVariable String name){
        return "Hello " + name + ", I am from port :" + port;
    }
}
